home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: oitnews.harvard.edu!cfanews!head-cfa!sdoe
- From: sdoe@head-cfa.harvard.edu (Stephen Doe)
- Subject: Re: Leap Years
- Message-ID: <DMw2ts.7tL@cfanews.harvard.edu>
- Sender: news@cfanews.harvard.edu
- Organization: Smithsonian Astrophysical Observatory, Cambridge, MA, USA
- References: <8BA8405.02C70020E1.uuout@sourcebbs.com> <4fsk14$jo2@kocrsv08.delcoelect.com> <3121EF9A.CA5@mail.isd.net> <4g28ut$p87@taurus.fccc.edu>
- Date: Fri, 16 Feb 1996 22:08:15 GMT
-
- In article <4g28ut$p87@taurus.fccc.edu>, cherceg@fccc.edu (Carl Herceg) writes:
- >
- > In article <3121EF9A.CA5@mail.isd.net>, "David A. Peterson"
- > <dpeterso@mail.isd.net> writes:
- > >Richard E. Fiegle wrote:
- > >>
- > >> david.mohorn@sourcebbs.com (DAVID MOHORN) wrote:
- > >> >How do you feature out leap years? If its evenly divisible by 400
- > >and
- > >> >4?
- > >> >
- > >>
- > >> Anything divisible by 4 is already guaranteed to be
- > >> divisible by 400.
- > >
- > >
- > >Leap years are evenly divisible by 4, except those that are evenly
- > >divisible by 100.
- > >Leap centuries are evenly divisible by 400. 2000 will be a leap
- > >century!
- >
- > Why, then, is 2000 a leap year, since it is evenly divisible by 100?
- > Wasn't 1900 a leap year? If 1904 was (1904/4=476) by your definition a
- > leap year, then 1900 must have been. Why are years that are evenly
- > divisible by 100 excluded?
-
- Because the year is not precisely 365.25 days long; to be more exact,
- the Gregorian calendar attempts to approximate the tropical year of 365.2422
- mean solar days. So, the rule is, a leap year is a year evenly divisible by 4;
- but, only those century years divisible by 400 are leap years--unless
- it is also a century year divisible by 4000, in which case it is only
- 365 days long. Thus,
-
- 1900 Not
- 1903 Not
- 1904 Leap
- 2000 Leap
- 4000 Not
-
- This gives the Gregorian calendar an accuracy of one day in 20,000 years.
-
- SD
-